﻿using TestOnlineProject.Models.Entities;
using TestOnlineProject.Models.DataAccess;

namespace TestOnlineProject.Models.BusinessLogic
{
    public class TestQuestionBLO
    {
        TestQuestionDAO testQuestionDAO = new TestQuestionDAO();

        public int Add(int testId, int questionId)
        {
            var testQuestion = new TestQuestion
                {
                    TestId = testId,
                    QuestionId = questionId
                };
            var result = testQuestionDAO.Insert(testQuestion);
            return result;
        }
    }
}